package com.example.smart_video;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.wink_172.library.GobalReceiver;


public class GBobalReceiver extends GobalReceiver {

    private static final String TAG = "TAG";
    //命令行发送广播  请注意需要在manifest.xml中注册

    @Override
    public void onReceive(Context context, Intent intent) {
        super.onReceive(context, intent);
        if (intent == null) {
            return;
        }

        String action = intent.getAction();
        switch (action) {
            case "android.provider.Telephony.SECRET_CODE":
                String host = intent.getData().getHost();
                Log.e(TAG, "onReceive: ====>>" + action);

                switch (host) {
                    case "1001":
                        break;

                    default:
                        break;
                }
                break;

            default:
                break;

        }


    }
}
